<script>
	import {
		mapMutations
	} from 'vuex'
	export default {
		methods:{
			...mapMutations(['login']),
		},
		onLaunch: function() {
			let userinfo = uni.getStorageSync('userinfo') || '';
			if(userinfo != ''){
				// 更新登陆状态
				this.login(userinfo)
			}
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	// 文字溢出省略（...）
	.text-line{
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}
</style>
